<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:37:"./views/home/mobile/index\index.phtml";i:1626540152;s:68:"E:\Web\test.zztuku.com\public\views\home\mobile\common\ufooter.phtml";i:1625675066;}*/ ?>
<!DOCTYPE HTML>
<html>
	<head>
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title><?php echo !empty($site['seo_title'])?$site['seo_title']:''; ?></title>
		<meta name="Description" content="<?php echo !empty($site['seo_description'])?$site['seo_description']:''; ?>" />
		<meta name="Keywords" content="<?php echo !empty($site['seo_keywords'])?$site['seo_keywords']:''; ?>" />
		<link rel="stylesheet" href="/static/home/mobile/css/bootstrap.css">
		<link rel="stylesheet" href="/static/home/mobile/css/font-awesome.min.css">
		<link href="/static/home/mobile/css/reset_5.css" rel="stylesheet" type="text/css" />
		<link href="/static/home/mobile/css/style.css?v=21019" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" type="text/css" href="/static/home/mobile/css/new_page.css?v=2" />
		<link rel="stylesheet" href="/static/home/mobile/css/swiper.min.css" />
		<link rel="stylesheet" href="/static/home/mobile/js/index/index.css?v=1">
		<style type="text/css">
			.new-main {
				padding-bottom: 40px;
			}
            .load-more{
                margin-top: -10px;
                margin-bottom: 30px;
                height: 30px;
                line-height: 30px;
                text-align: center;
                background: #ffffff;
            }
            .img-home{
                width: 100%;
                height: 100px;
            }
            .span_alink{
                position: relative;
                width: 140px;
                height: 35px;
                line-height: 100px;
                border-radius: 5px;
                background-color: red;
                display: block;
                margin: 0 auto;
                vertical-align: middle;
                text-align: center;
                top: 35px;
                clear: both;
            }
            .span_alink span{
                display: block;
                color: white;
                font-size: 14px;
                line-height: 35px;
                text-align: center;
            }
          .list-id-span{
          	color:#999999;
            font-size:12px;
          }
          .yellow-new{
            background:#ECF4FF;
            color:#3895FF !important;
            border-color:#ECF4FF !important;
          }
          .blue-new{
            background:#ECF4FF;
            color:#3895FF !important;
             border-color:#ECF4FF !important;
          }
          .red-new{
            background:#ffffff !important;
            border-color:#FECB9D !important;
            color:#FE7E24 !important;
          }
          .red-new img{
  			 width:15px;
             height:15px;
             line-height:18px;
             margin-right:5px;
          }
          .h1_title {
          	overflow:hidden;
            width:100%;
            height:44px;
            padding:10px 2px;
          }
          .h1_title h4{
            width:100px;
            float:left;
            vertical-align: middle;
            color: #fff;
            display: inline-block;
            margin-left:10px;
            font-size: 16px !important;
          }
          .h1_title i{
          	position: absolute;
            background-color:#308CFC;
            width:3px;
            height:17px;
            margin-top:4px;
            left:15px
          }
          .icon-right{
          	float:right;
            width:22px;
            height:16px;
            display: inline-block;
            line-height: 20px;
          }
          .index_list li .keywords span{
          	font-size: 12px;
    color: #fff;/*#4690fa;*/
    display: inline-block;
    border: 1px solid #4690fa;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-radius:10px;
    padding: 0px 4px;

          }
          
			.app_download .icon-right img {right:13px !important;}
			#banner .flex-control-paging li a{height:8px  !important;;width:8px  !important;;}
			#banner .flex-control-nav{bottom:0px !important;};
#banner .flexslider{padding:15px!important;}			
#banner .flexslider .slides img {
    width: 100%;
    display: block;
    border-radius: 13px;
    height: auto;
    -moz-user-select: none;
}
			
.index_menu li b {
    font-weight: normal;
    display: block;
    text-align: center;
    margin-top: 5px;
    font-size: 16px;
    color: #fff;
}	
.gbgg{font-size:16px;font-weight:bold;
color: #c5c6d0;
    padding-left: 18px;}
.gbgg span{
    background: #ff0000;
    color: #ffffff;
    border-radius: 5px ;
    padding: 3px;
}
#notice{
    height: 40px!important;
}
.app_download a {
    font-size: 14px;
    color: #fff!important;
    display: block;
    padding-left: 38px;
}
#footer-bar {
    width: 100%;
    background-color: #000;
    position: fixed;
    bottom: 0px;
    height: 54px;
    padding: 0px 0 0 0;
    margin: 0px;
    text-align: center;
    border-top: 1px solid #504c4c;
    z-index: 999;
}
#footer-bar li b {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #fff;
    padding-top: 2px;
}
.index_list{padding:10px;}
.index_list li {
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 3px;
    position: relative;
    border: 1px solid #423b3b;
    background: #1a1a1a;
    width: 49%; 
    display: inline-block;
    border-radius: 5px; 
}
.index_list li a.userlogo {
    display: block;
    padding-top: 0px;
    padding-bottom: 3px;
    width: 60px;
    position: absolute;
    left: 6px;
    top: 8px;
}
.index_list li .desc {
    color: #fff;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    margin-bottom: 0px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.index_list li a.title {
    padding-left: 60px;
    display: block;
}
.index_list li a.userlogo img {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 25px;
}
.index_list li a .subtitle {
    color: #fff;
    display: block;
    overflow: hidden;
    height: 26px;
    line-height: 39px;
}
.yellow-new{
            background:#2f62ff;
            color:#fff !important;
            border-color:#2f62ff !important;
            line-height: 14px;
           
          	
          }
          .blue-new{
          	 line-height: 12px;
            background:#2f62ff;
            color:#fff !important;
         
             border-color:#2f62ff !important;
          }
          .tpdh{display:flex;
              padding: 10px;
              width: 100%;
              /*background: #1a1a1a;
              margin-top: 10px;*/
          }
          .tpdh div{
              display: inline-flex;
    border-radius: 5px;
    width: 33%;
    height: 150px;
    margin: 5px;
    font-weight: bold;
    flex-direction: row;
    justify-content: space-around;
          }
          .tpdh div a img{width:100%;height:150px;}
          .index_menu li {
    float:none!important; 
    width: 24%!important;
    text-align: center;
    padding: 0 5px;
    display: inline-block;
}

.index_list li{margin-left:0px !important;margin-right:0px !important;width:calc(50% - 5px) !important}
.index_list li:nth-child(even){margin-left:10px !important;}
.gbgg span{font-size:14px;padding:1px 3px;}
		</style>
        <!-- 弹出层 -->
        <link rel="stylesheet" href="/static/plugins/dialog/css/dialog.css" />
        <script type="text/javascript" src="/static/home/mobile/js/jquery-2.0.3.min.js"></script>
        <script src="/static/plugins/dialog/js/dialog.js"></script>
        <!-- 弹出层 -->
        <script type="text/javascript" src="/static/plugins/clipboard.min.js"></script>
        <script type="text/javascript" src="/static/home/mobile/js/swiper.min.js"></script>
        <script type="text/javascript" src="/static/home/mobile/js/global.js"></script>
        <script type="text/javascript" src="/static/home/mobile/js/index/jquery.flexslider-min.js"></script>
        <link rel="stylesheet" href="/static/home/mobile/js/index/flexslider.min.css" />
        <link rel="stylesheet" href="/static/home/mobile/js/index/index.css?v=1">
	</head>
    <body class="new-body" style="background:#000;">
        <div style="position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,0.5);z-index:9999;display:none" id="popContent">
            <div style="position:absolute;width: 80% !important;top:15%;;margin-top:0;left:50%;margin-left:-40%;">
                <img src="/uploads/<?php echo $pop['img']; ?>" id="pop" data-img="<?php echo $pop['img']; ?>" data-status="<?php echo $pop['status']; ?>" style="width:100%;" onclick="location.href='<?php echo $pop['link']; ?>'">
                <div style="margin:auto;margin-top:10px;width:30px;height:30px;background:#fff;line-height:26px;text-align:center;font-size:20px;border-radius:15px;"
                  onclick="$('#popContent').hide();"
                >x</div>
            </div>
        </div>
	<section id="banner" style="height:180px; no-repeat;background-size:100% 150px;padding: 15px;background:#000">
		   <div class="flexslider"> 
		      <ul class="slides" style="background:#000"> 
		      <?php if(is_array($banners) || $banners instanceof \think\Collection || $banners instanceof \think\Paginator): $i = 0; $__LIST__ = $banners;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
		        <li><a href="<?php echo $v['url']; ?>"><img style="height:150px;border-radius: 15px;" src="<?php echo $v['thumb']; ?>"></a></li> 
		       <?php endforeach; endif; else: echo "" ;endif; ?>
		      </ul> 
		   </div>
   </section>
    
   <div class="banner-bottom" style="display:none;">
        <img src="/static/home/mobile/js/index/home-banner-bottom.png">
    </div>
    <section id="container" > <!--style="background:#1a1a1a;"-->

       <div class="index_menu" style="padding:0">
      <ul>
          <?php if(is_array($caidan) || $caidan instanceof \think\Collection || $caidan instanceof \think\Paginator): $i = 0; $__LIST__ = $caidan;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
          <li style="padding-top:10px;">
      	<a href="<?php echo $v['url']; ?>">
	      	<img src="/uploads/<?php echo $v['img']; ?>" >
	      	<b><?php echo $v['msg']; ?></b>
      	</a>
      	</li>
      	<?php endforeach; endif; else: echo "" ;endif; ?>
      </ul>
     </div>
      <div class="clear"></div>
      

      
      <div class="clear"></div>

      </section>
	  
           </div>

</div>
<!--background: #1a1a1a;-->
      <div class="app_download" style="margin-top:10px;border-radius: 0;padding:0">
        <div class="gbgg" style="display:inline-block;margin-top: -35px;vertical-align: middle;"><span>公告</span></div>
      <div id="notice" class="swiper-container swiper-container-vertical" style="display:inline-block;">
            <div class="swiper-wrapper">
               <?php if(!empty($notices)): if(is_array($notices) || $notices instanceof \think\Collection || $notices instanceof \think\Paginator): $i = 0; $__LIST__ = $notices;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$notice): $mod = ($i % 2 );++$i;?>
                        <div class="swiper-slide swiper-slide-duplicate" style="height: 35px;line-height:40px">
                            <a id="slide_href" href="/home/notice/detail/id/<?php echo $notice['id']; ?>.html" hid="12" style="padding-left:5px;">
                            	<div style="float:left;">
	                            	<?php echo $notice['title']; ?>
                            	</div>
                            	
                              
                            
                            </a>
                        </div>
                    <?php endforeach; endif; else: echo "" ;endif; endif; ?>
               </div>
            </div>
      </div>	  
	  <div class="tpdh">
	      <div>
	          <a href="/home/invite/weekly_shouru"><img src="/img/bt1.png"></a>
	      </div>
	      <div>
	          <a href=""><img src="/img/bt2.png"></a>
	      </div>
	      <div>
	          <a href=""><img src="/img/bt3.png"></a>
	      </div>
	  </div>
	  <!--background:#1a1a1a;-->
      <div class="h1_title" style="padding:0px;height:40px;line-height:40px;margin-top: -5px;">
        
          <h4 style="">推荐悬赏</h4>
    	<a href="/home/task/index">
    		
    	</a>
      </div>	  
	  
     <?php if(!empty($tasks)): ?>   
     <div class="index_list">
      <ul style="display:flex;align-items:center;flex-wrap:wrap;">
            <?php if(is_array($tasks) || $tasks instanceof \think\Collection || $tasks instanceof \think\Paginator): $k = 0; $__LIST__ = $tasks;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$task): $mod = ($k % 2 );++$k;?>
            <li  style="height:120px;margin-right:10px;width:47%;margin-bottom:10px;border:none;">
                	<?php if($task['is_top']): ?> 
                	<img src="/static/home/mobile/images/tuijian.png" style="position:absolute;top:0px;left:0px;z-index:10;height:25px;width:25px;border-radius:5px 0 0 0;">
                	<?php endif; ?>
                <a href="/home/task/detail/id/<?php echo $task['id']; ?>.html?xapp-target=blank" class="userlogo">
                	
                	<img src="<?php echo $task['avatar']; ?>" alt="">
                	<?php if($task['is_vip']): ?>
                	<img src="/static/home/mobile/images/vip2.png" style="position:absolute;bottom:2px;right:10px;z-index:10;height:16px;width:16px;">
                	<?php endif; ?>
                	
                
                	
                	</a>
                <a href="/home/task/detail/id/<?php echo $task['id']; ?>.html?xapp-target=blank" class="title" style="margin-left:5px">

                    <div class="subtitle" ><?php echo $task['title']; ?><!--<span class="list-id-span">编号：<?php echo $task['id']; ?>--></span></div>
                 </a>
                 <div class="money" style="color:#FF2424;font-size: 12px;margin-left:5px;padding-left: 60px;">赏<?php echo $task['unit_price']; ?>元</div>
                   
                   <div class="keywords" style="width:100%;margin-top: 10px;background: #2b2727;">
                        <span class="yellow-new" style="color:#308CFC;"><?php echo $task['cataname']; ?></span>
                        <span class="blue-new" style="color:#308CFC;"> <?php if(!empty($task['appName'])): ?> <?php echo mb_substr($task['appName'],0,5); else: ?>应用名称<?php endif; ?></span>
                  </div>
                   <div class="desc" >
                      <span> <i style="color:#FF6B04;"> <?php echo abs($task['join_num']); ?></i>人已赚</span>　
                      <span style="">剩余<?php echo abs($task['ticket_num']-$task['join_num']); ?>份</span>
                    </div>
            </li>
            <?php endforeach; endif; else: echo "" ;endif; ?>
  </ul>
</div>
   <div class="clear"></div>
    <?php endif; ?>
      <div style="height:85px;"></div>
   <style>
    #footer-bar li {
    width: 25%;
    float: left;
    
}
#footer-bar{background:#0d0d0d}
</style>

<footer id="footer-bar" lang="<?php echo $controller; ?>">
      <ul id="tabbar">
      <li><a href="/">
      <img src="/static/home/mobile/images/0011<?php if(in_array($controller,array('index'))): ?>_on<?php endif; ?>.png">
      <b>首页</b></a></li>
      <li><a href="/home/task/category.html"><img src="/static/home/mobile/images/0022<?php if(in_array($controller,array('task'))): ?>_on<?php endif; ?>.png"><b>大厅</b></a></li>

      <li><a href="/home/invite.html"><img src="/static/home/mobile/images/0044<?php if(in_array($controller,array('connection'))): ?>_on<?php endif; ?>.png"><b>推广</b></a></td>
      <li><a href="/home/account.html"><img src="/static/home/mobile/images/0055<?php if(in_array($controller,array('account','charge','fans','vip','feedback','feedback','notice','help'))): ?>_on<?php endif; ?>.png"><b>我的</b></a></li>
      </ul>
</footer>   
   <script>
    $(function() { 
      $(".flexslider").flexslider({
		animation: "slide",
		slideshowSpeed: 3000,
		directionNav: false, 
		pauseOnHover:true,
		}); 
    }); 
    function gotoUrl(id){
    	window.location.href ="home/task/redpackage/task_id/"+id;
    }
    //localStorage.removeItem('time')
    //localStorage.setItem('time','20210202')
    function getOldTime(){
        var time = localStorage.getItem('time');
        if(!time || typeof(time) == 'undefined'){
            time = format_date(new Date());
            localStorage.setItem('time',time);
        }
        //localStorage.removeItem('time')
        return time;
    }
    
	//var now_time = format_date(new Date());
	//var compare_res = compare_time(old_time)
	//console.log(" old_time： "+old_time," now_time："+now_time," 是否为同一天： "+compare_res);
	
	// 比较时间是否为当天
	function compare_time(time) {
	  var today_end = get_endtime();
	  var time_old = time;
	  if (today_end == time_old) {
	    return 1
	  } else {
	    return 0
	  }
	}

    $(document).ready(function(){
        var old_time = getOldTime(); 
        var pop = $("#pop");
        var popContent = $("#popContent");
        //有图片并且已启用
        if(pop.data("img") != "" && pop.data("status") == 1){
            var compare_res = compare_time(old_time);
            console.log(" old_time： "+old_time," now_time："+ format_date(new Date())," 是否为同一天： "+compare_res);
            if(compare_res == 0){
                //不同天弹窗一次
                popContent.show();
                localStorage.setItem('time',format_date(new Date()));
            }
        }
    })
    // 获取当日23：59：59时间
	function get_endtime() {
	  var time_end = new Date(new Date(new Date().toLocaleDateString()).getTime() + 24 * 60 * 60 * 1000 - 1);
	  var time_format = format_date(time_end)
	  return time_format;
	}
	
	// 获取当前时间的  年月日时分秒  的时间格式化 20191220100246
	function format_date(now) {
	  var year = now.getFullYear(); //年
	  var month = now.getMonth() + 1; //月
	  var day = now.getDate(); //日
	  var hh = now.getHours(); //时
	  var mm = now.getMinutes(); //分
	  var ss = now.getSeconds(); //秒
	
	  var clock = year + "";
	  if (month < 10) {
	    clock += "0";
	  }
	  clock += month + "";
	
	  if (day < 10) {
	    clock += "0";
	  }
	  clock += day + "";
	
// 	  if (hh < 10) {
// 	    clock += "0";
// 	  }
// 	  clock += hh + "";
	
// 	  if (mm < 10) {
// 	    clock += '0'
// 	  }
// 	  clock += mm;
	
// 	  if (ss < 10) {
// 	    clock += '0'
// 	  }
// 	  clock += ss;
	
	  return clock;
	}

   </script>
       <script type="text/javascript" src="/static/home/mobile/js/index.js"></script>
            <?php echo !empty($site['baidu_stat'])?$site['baidu_stat']:''; ?>
            <?php echo !empty($site['baidu_chat'])?$site['baidu_chat']:''; ?>
              
            </body>
          <script>
        
              sleep(1000); 
        
               function sleep(numberMillis){
         var now = new Date();
        
               	var exitTime = now.getTime() + numberMillis;
          while (true) {
        
             	  now = new Date();
        
               	if (now. getTime() > exitTime)
         return;
        }
        }
</script>
<div style="display:none;">

</div>


</html>